home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / CUTILSLI / UTILITYL / STALL.C < prev    next >
Text File  |  1987-11-10  |  643b  |  29 lines

  1.     /************************************************
  2.     *    File:        Stall.c
  3.     *    Purpose:    To Wait for a given # of Seconds 
  4.     *    Authors:    Robert E. Neville
  5.     *    Date:        11/10/87 
  6.     *    Procedures:    stall().
  7.     *    Version:    1.0a
  8.     *    Copyright:    Hummingbird Graphics
  9.     *************************************************/
  10.     
  11.     /****************************************
  12.     *    File:        stall(secs)
  13.     *    Purpose:    To wait sec Seconds
  14.     *    Passed:        long    -    secs
  15.     *    Returned:    void
  16.     *****************************************/
  17.     
  18.     void stall(secs)
  19.     long        secs;
  20.     {
  21.         long    tc;
  22.     
  23.         tc = TickCount() + (secs * 60);
  24.         do
  25.         {
  26.         } while (TickCount() < tc);
  27.     }
  28.     
  29.     /**********        End of File     **********/